Cotpl_block
└─Cotpl_logical
public class Cotpl_logical
extends Cotpl_block
Field Summary | |
---|---|
protected Cotpl_expr Condition expression |
Fields inherited from API - CoTemplate\Cotpl_block | |
---|---|
blocks, data |
Constructor Summary | |
---|---|
void | __construct(string expr_str, string if_code, string else_code, array index, array path, string code) Constructs logical block structure from strings |
Method Summary | |
---|---|
string | TPL code representation for debugging |
array | getTags() Returns the list of tag names present in the block |
void | parse(XTemplate xtpl, XTemplate tpl) Overloads parse() |
void | reset(mixed dummy, mixed path) Overloads reset() |
string | Actually parses a conditional block and returns parsed contents |
Methods inherited from API - CoTemplate\Cotpl_block | |
---|---|
__construct, __toString, blocks_toString, compile, getTags, parse, reset, text |
protected Cotpl_expr Condition expression $expr = null
public void __construct(string expr_str, string if_code, string else_code, array index, array path, string code)
public string __toString()
public array getTags()
public void parse(XTemplate xtpl, XTemplate tpl)
public void reset(mixed dummy, mixed path)
public string text(XTemplate tpl)